
'''
    变长参数：
        *agrs  --> 将传入的数据封装成元组
    def  方法(*args):
        return s

'''

def getSum(*args):  # (2,3)   (1,2,3)  args就是将所有数据封装元组
    s = 0
    print(args)
    for i in args:
        s = s + i
    print(s)

getSum(1,2,3,4,5,6,7,8,9,10,2,48,510,984,54,895,889,561,8851)




